package org.zju.demo.shoppingdemo.model.response;

import com.google.gson.annotations.SerializedName;

/**
 * Created by ZJDX on 2015/9/8.
 */
public class BaseResponse{

    @SerializedName("status")
    protected int status;

    @SerializedName("command_id")
    protected int commandId;

    @SerializedName("result")
    protected int result;

    @SerializedName("message")
    protected String message;

    public static final int DEFAULT_STATUS = -1;
    public static final int DEFAULT_COMMANDID = -1;
    public static final int DEFAULT_RESULT = -1;
    public static final String DEFAULT_MESSAGE = "请检查网络";

    public int getStatus() {
        return status;
    }

    public int getCommandId() {
        return commandId;
    }

    public int getResult() {
        return result;
    }

    public String getMessage() {
        return message;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public void setCommandId(int commandId) {
        this.commandId = commandId;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void doExtra() {
        // do things in async task
        // you can do things here which cost time
    }
}
